home *** CD-ROM | disk | FTP | other *** search
/ Teach Yourself VRML 2 in 21 Days / Teach Yourself VRML 2 in 21 Days.iso / mac / ISO9660 / 3rdparty / POLYTRAN / dos / PT_DOS.ZIP / DOC_1 / IMP_VPRO.1 < prev    next >
Encoding:
Text File  |  1996-06-13  |  7.8 KB  |  161 lines

  1. .so psroff.inc        # Include the macros needed for output to Postscript
  2. .TH Import-VistaPro
  3. .SH NAME
  4. imp_VistaPro \- Vistapro Digital Elevation Model (DEM) geometry import filter
  5. .SH SYNOPSIS
  6. .PP
  7. This man page describes the options specific to the Vistapro DEM geometry
  8. import converter.
  9. .PP
  10. .SH EXAMPLE CONVERSION SYNTAX
  11. .PP
  12. To convert a Vistapro DEM file to 3D Studio using the default parameters listed 
  13. in the setup.ini file:
  14. .IP
  15. pt -i vpro -o 3ds filename.dem
  16. .PP
  17. To convert a Vistapro DEM file to VRML and override some of the default options 
  18. in setup.ini:
  19. .IP
  20. pt -i vpro -in-vpro-skip-factor = 6 -o vrml filename.dem
  21. .PP
  22. .SH OVERVIEW
  23. .PP
  24. This geometry import converter imports, manipulates and converts
  25. digital elevation model (DEM) data in the Vistapro format. 
  26. .PP
  27. .SH FEATURES OF THIS CONVERTER
  28. .PP
  29. Vistapro DEM datasets typically contain 60000 or more quadrilateral polygons, or
  30. 1200000 triangles (for a 258x258 resolution sample). This is an enormous
  31. number of polygons for most 3d rendering programs so this DEM converter
  32. incorporates two unique options to overcome this problem:
  33. .IP
  34. 1) The converter can skip over samples in the dataset so that only every n-th
  35. sample is used. Rather than importing 258x258 samples, the converter imports
  36. 51x51 samples (for a skip factor of 5) which results in only 2601 quadrilateral
  37. polygons.
  38. .IP
  39. 2) Rather than store the entire DEM dataset in single object, the DEM converter
  40. breaks up the data into multiple smaller objects with a common parent. This 
  41. has shown to be an effective method to speeding up the wireframe redraws of the
  42. DEM data (by a factor of 2 or 3), and makes interactive user movement of a 3d
  43. camera much faster since each sub-object is only a few hundred polygons.
  44. In addition, certain rendering programs
  45. (such as Okino's NuGraf renderer) use much less memory when many smaller
  46. objects are used rather than one large object with many polygons. By
  47. default each sub-object stores a maximum of 900 polygons; contrast this with
  48. other converters which lump all 120,000 polygons into a single object - few
  49. renderers will be able to render such a large object.
  50. .IP
  51. 3) A default 3d camera is added to the scene which views the DEM data from a
  52. pleasing angle.
  53. .IP
  54. 4) u/v texture coordinates are added to the imported data so that a bitmap image 
  55. can be easily draped over the DEM data.
  56. .IP
  57. 5) The converter creates smoothed vertex normals for the DEM data so that
  58. it will appear to be smooth when rendered.
  59. .PP
  60. .SH COMMAND LINE OPTIONS
  61. .PP
  62. The following options are specific to this import converter:
  63. .TP
  64. -i vpro
  65. This is the optional command line option which specifies that the input data
  66. is in the Vistapro DEM file format. If not specified then the converter will try 
  67. to guess the input file's format from its file extension (.dem) and then from the 
  68. contents of its file. 
  69. .TP
  70. -in-vpro-print-statistics = [ yes | no ]
  71. If set to 'yes' then the converter will print out the number of objects
  72. and polygons created.
  73. .TP
  74. -in-vpro-add-default-camera = [ yes | no ]
  75. If set to 'yes' then the converter will add a default camera to the scene
  76. which views the DEM data at a pleasing angle.
  77. .TP
  78. -in-vpro-skip-factor = #
  79. This switch determines the quality of the imported DEM data (it
  80. directly controls how many polygons will be used to approximate the
  81. input DEM data). THIS IS AN IMPORTANT CONTROL PARAMETER!! A value of
  82. 1 results in the highest quality mesh while higher values (2, 3, 4, etc)
  83. result in lower quality, but at the benefit of reducing the number of
  84. polygons in the input data. This number will cause the converter to
  85. 'skip' over every n-th input sample. For example, if the input dataset
  86. size is 258x258 samples, and the skip factor is set to 4, then the 
  87. converter will actually read in the data as if it were of size 65x65 
  88. (258/4 = 65). This will produce 4225 polygons (65x65) instead of
  89. 66565 polygons. A value of 2 or 3 (16641 polygons to 7396 polygons)
  90. will produce good results for a final rendering, while values of 5 to 8 
  91. will produce small datasets ideal for fast previews (2704 polygons to 
  92. 1024 polygons).
  93. .TP
  94. -in-vpro-sub-grid-size = #
  95. By default the DEM data will be cut up into several smaller sub-objects
  96. rather than having all of the DEM data clumped together into one huge
  97. object. This option controls how many polygons will be put into each
  98. sub-object. The default is 30 which will cause 900 polygons (30x30)
  99. to be stored in each sub-object. The valid range is 5 to 100.
  100. .TP
  101. -in-vpro-height-scaling-factor = #
  102. This option scales the height of the DEM data. It default to 1.0. Values
  103. greater than 1.0 will make the DEM data higher while values between 0.0
  104. and 1.0 will make the DEM data shorter.
  105. .TP
  106. -in-vpro-add-2d-txtr-coords = [ yes | no ]
  107. If set to 'yes' then u/v texture coordinates will be added to the
  108. imported dataset. These texture coordinates will allow a 2d bitmap image
  109. to be easily mapped to the surface of the data. Please note that the
  110. texture coordinates are aligned with the mathematical bounding quadrilateral 
  111. of the dataset, not the actual physical edges of the data (this is because
  112. the physical edges of the data are not square or precise).
  113. .TP
  114. -in-vpro-add-default-2d-texture     = [ yes | no ]
  115. If set to 'yes' then a default 2d bitmap texture file ("default.tif") will 
  116. be linked to the DEM data. This option is useful if you intend to apply a 
  117. 2d bitmap image to the DEM data. The "-in-vpro-add-2d-txtr-coords" option must 
  118. also be enabled.
  119. .TP
  120. -in-vpro-texture-2d-u-repeat = 5
  121. .TP
  122. -in-vpro-texture-2d-v-repeat = 5
  123. These two values determine how many times the 2d bitmap texture is to repeat 
  124. across the DEM data surface (see the "-in-vpro-add-default-2d-texture"
  125. option above). The default values are 5 which will make the texture repeat 
  126. 5 times in the horizontal and vertical directions.
  127. .TP
  128. -in-vpro-add-default-3d-texture = [ yes | no ]
  129. If set to 'yes' then a NuGraf "mountain" procedural texture definition 
  130. will be added to the scene and assigned to the current shader (useful for
  131. rendering the DEM data with the NuGraf renderer). This texture varies the
  132. color of the DEM data according to the elevation and slope of a polygon (the
  133. color varies from greens, to browns to whites at the highest altitudes).
  134. Please note that this texture tends to be slow to compute due to the turbulence 
  135. math functions; a better alternative would be to assign a 2d bitmap texture.
  136. .TP
  137. -in-vpro-create-one-object = [ yes | no ]
  138. If set to 'yes' then one single object is created for all of the imported
  139. data rather than having the data broken up into multiple smaller
  140. sub-objects (the default). The converter automatically sets this to 'yes' 
  141. (internally) if the selected output format is to be 3D Studio (this is
  142. because 3D Studio requires all polygons to be inside a single object so
  143. that its smoothing algorithm will work properly; if multiple objects are used
  144. then the vertex normals will not be the same where the sub-objects meet
  145. and hence "cracks" may appear at the junctions).
  146. .TP
  147. -in-vpro-triangulate-data = [ yes | no ]
  148. If set to 'yes' then the DEM data will be imported as triangles instead of 
  149. 4 sided polygons. This is sometimes useful to enable since 4-sided DEM data 
  150. polygons are not planar.
  151. .PP
  152. .SH LIMITATIONS
  153. .PP
  154. If exporting to 3D Studio then all of the DEM data must be exported as one
  155. object so that proper smoothing occurs between the sub-chunks. 3D Studio
  156. has a limit of 64k vertices and 64k polygons, therefore the chunk size must
  157. be set appropriately to limit the number of polygons and vertices output
  158. (the number of polygons created can be verified by setting the
  159. '-in-vpro-print-statistics' option to 'yes' and checking that the number of
  160. polygons created is less than 65536).
  161.